package j04zuoye;

import java.util.Arrays;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class J3liu {
    public static void main(String[] args) {
        Stream<String> s1 = Stream.of("a","f","k","f");
//        String[] arr = s1.toArray(length->new String[length]);
//        System.out.println("arr = " + Arrays.toString(arr));
//        System.out.println("=====");
//        List<String> l1 = s1.collect(Collectors.toList());
//        System.out.println("l1 = " + l1);

        Set<String> set1 = s1.collect(Collectors.toSet());
        System.out.println("set1 = " + set1);
    }
}
